package com.yayun.merchant.mapper;

import com.yayun.merchant.domain.AuctionRecord;
import java.util.List;

public interface AuctionRecordMapper {
    /**
     * 查询竞拍记录
     */
    public AuctionRecord selectAuctionRecordById(Long id);

    /**
     * 查询竞拍记录列表
     */
    public List<AuctionRecord> selectAuctionRecordList(AuctionRecord auctionRecord);

    /**
     * 新增竞拍记录
     */
    public int insertAuctionRecord(AuctionRecord auctionRecord);

    /**
     * 修改竞拍记录
     */
    public int updateAuctionRecord(AuctionRecord auctionRecord);

    /**
     * 删除竞拍记录
     */
    public int deleteAuctionRecordById(Long id);

    /**
     * 批量删除竞拍记录
     */
    public int deleteAuctionRecordByIds(Long[] ids);

    /**
     * 查询拍卖商品的最高出价记录
     */
    public AuctionRecord selectHighestBidRecord(Long auctionId);

    /**
     * 查询用户的竞拍记录
     */
    public List<AuctionRecord> selectUserAuctionRecords(Long userId);

    /**
     * 更新拍卖商品相关记录状态
     */
    public int updateAuctionRecordStatus(Long auctionId, Integer oldStatus, Integer newStatus);

    /**
     * 根据拍卖ID查询竞拍记录列表
     */
    public List<AuctionRecord> selectAuctionRecordsByAuctionId(Long auctionId);
} 